package com.example.shop_front_api.service;

import com.example.shop_front_api.entity.MemberAddress;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface MemberAddressService {
    int addAddress(MemberAddress address);
    List<MemberAddress> getAddressByMemberId(int memberId);

    MemberAddress getAddressById(int id);

    int updateAddress(MemberAddress address);

    int deleteAddress(int id, int memberId);

    int setDefaultAddress(int id, int memberId);

    MemberAddress getDefaultAddressByMemberId(int memberId);
}
